package cn.qn.common.converters;

import org.springframework.http.MediaType;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;

import java.util.ArrayList;
import java.util.List;

/**
 * 微信返回数据转换
 * Created by nishu on 2018/4/13.
 */
public class Jackson2HttpMessageConverter extends MappingJackson2HttpMessageConverter {

    public Jackson2HttpMessageConverter(){
        List<MediaType> mediaTypes = new ArrayList<>();
        mediaTypes.add(MediaType.TEXT_PLAIN);
        setSupportedMediaTypes(mediaTypes);
    }
}